import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import * as serviceWorker from './serviceWorker';
import { BrowserRouter as Router, Link} from "react-router-dom";
import routers from './routers.js'
import { Provider } from 'react-redux'
import configStore  from './store/index.js'
const store = configStore();

ReactDOM.render(
    <Provider store={store}>
        {routers}
    </Provider>
    , 
    document.getElementById('root'));

// If you want your app to work offline and load faster, you can change
// unregister() to register() below. Note this comes with some pitfalls.
// Learn more about service workers: http://bit.ly/CRA-PWA
// serviceWorker.unregister();
